API Documentation
ShaderInstanceMemorySlot.h
1 // ShaderInstanceMemorySlot.h
3 //
5 
6 namespace nkGraphics
7 {
13  class DLL_GRAPHICS_EXPORT ShaderInstanceMemorySlot : public ShaderMemorySlot
14  {
15  public :
16 
20  enum class DATA_TYPE
21  {
22  UNKNOWN = 0,
23  WORLD_MATRIX,
24  CUSTOM
25  } ;
26 
27  public :
28 
37 
38  // Getters
42  DATA_TYPE getType () const ;
46  virtual unsigned int getDataSize () const ;
50  virtual const char* getTypeAsString () const override ;
51 
52  // Setters
56  void setAsWorldMatrix () ;
63 
69  virtual void exportClassToTree (nkExport::Node* rootNode) override ;
75  virtual void importClassFromTree (nkExport::Node* rootNode) override ;
76  } ;
77 }
nkGraphics::ShaderInstanceMemorySlot::getTypeAsString
virtual const char * getTypeAsString() const override
nkGraphics::PASS_TYPE::UNKNOWN
@ UNKNOWN
Unknown place holder.
nkGraphics::ShaderMemorySlot
A memory slot in a memory resource.
Definition: ShaderMemorySlot.h:15
nkGraphics::ShaderInstanceMemorySlot::ShaderInstanceMemorySlot
ShaderInstanceMemorySlot()
nkGraphics::ShaderInstanceMemorySlot::DATA_TYPE
DATA_TYPE
Definition: ShaderInstanceMemorySlot.h:21
nkGraphics::ShaderInstanceCustomSlot
A custom slot, implementable by external code.
Definition: ShaderInstanceCustomSlot.h:12
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkGraphics::ShaderInstanceMemorySlot::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkGraphics::ShaderInstanceMemorySlot::setAsWorldMatrix
void setAsWorldMatrix()
nkGraphics::ShaderInstanceMemorySlot::~ShaderInstanceMemorySlot
virtual ~ShaderInstanceMemorySlot()
nkGraphics::ShaderInstanceMemorySlot::setAsCustom
void setAsCustom(ShaderInstanceCustomSlot *slot)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ShaderInstanceMemorySlot::getType
DATA_TYPE getType() const
nkGraphics::ShaderInstanceMemorySlot::getDataSize
virtual unsigned int getDataSize() const
nkGraphics::ShaderInstanceMemorySlot::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkGraphics::ShaderInstanceMemorySlot
A memory slot for per instance data in a Shader.
Definition: ShaderInstanceMemorySlot.h:14